
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>编辑资料</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <!-- <link rel="shortcut icon" href="/favicon.ico"> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="<%=basePath %>/resources/Public/Vendor/SUI/dist/css/sm.min.css">
    <link rel="stylesheet" href="<%=basePath %>/resources/Public/Vendor/SUI/dist/css/sm-extend.min.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/resources/Public/Vendor/icon/iconfont.css">

    <link rel="stylesheet" href="<%=basePath %>/resources/Public/css/common.css">

</head>
<body>
<div class="page-group">
    <div class="page xgj-my-detail" id='xgj-my-detail'>
        <div class="content ">
            <div class="list-block">
                <ul>

                    <li>
                        <div class="item-content ">
                            <div class="item-inner">
                                <div class="item-title label">头像</div>
                                <div class="pull-right uname">
                                    <img class="avatar" style="width: 3rem;height: 3rem;" src="${customer.logo}">
                                </div>

                            </div>
                        </div>
                    </li>
                    <div style="height: 0.3rem;width: 100%;background-color: #F5F5F5">
                    </div>
                    <li>
                        <div class="item-content ">
                            <div class="item-inner">
                                <div class="item-title label">用户名</div>
                                <div class="item-after">
                                    ${customer.wName}
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label left-text">联系电话</div>
                                <div class="item-after">
                                        ${customer.phone}
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
                <div class="content-block">
                    <p><a href="javascript:loginOut()" class="button logout-btn">退出登录</a></p>
                </div>
            </div>
        </div>
        <script src='<%=basePath %>/resources/Public/Vendor/SUI/dist/js/zepto.js'></script>
        <script type="text/javascript">
            $.config = {
                // 路由功能开关过滤器，返回 false 表示当前点击链接不使用路由
                routerFilter: function($link) {
                    // 某个区域的 a 链接不想使用路由功能
                    if ($link.is('.disable-router a')) {
                        return false;
                    }
                    return true;
                }
            };
        </script>
        <script src='<%=basePath %>/resources/Public/Vendor/SUI/dist/js/sm.js'></script>
        <script src="<%=basePath %>/resources/Public/Vendor/SUI/dist/js/sm-city-picker.min.js" ></script>
        <script src='<%=basePath %>/resources/Public/Vendor/SUI/dist/js/sm-extend.min.js'></script>
        <script src='<%=basePath %>/resources/Public/js/common.js'></script>

    </div>
</div>
<!--   此处引入 tabar.html -->
<!-- / 此处引入 tabar.html -->
<script type="text/javascript">
    $(function() {
    });
    function loginOut() {
        $.ajax({
            url: "<%=path%>/wx/user/loginOut.do",
            method: 'GET',
            dataType: 'json',
            data: {
            },
            success: function(data){
                window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx71b22bc16489b2ee&redirect_uri=http%3a%2f %2fwx.lbxgj.com%2fwx %2fuser%2fcenter.do.do&response_type=code&scope=snsapi_base&state=123#wechat_redirectt";
            },error:function(data){
                alert(data);
            }
        });
    }
</script>


</body>
</html>